var Mock = require('mockjs');
const users = Mock.mock({
  'list|50': [{
    id: '@id',
    name: '@cname',
    "age|16-26": 18,
    "sex|1": ['男', '女'],
    detail: "@ctitle(10,100)",
    avator: "@image(100x100,@color,@cname)"
  }]
});

const products = Mock.mock({
  'list|50': [{
    id: '@id',
    name: '@cname',
    detail: "@ctitle(10,100)",
    "price|20-200": 20,
    image: "@image(100x100,@color,@cname)"
  }]
});

module.exports = {
  users,
  products
}